-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SFR-1969: Add "Read Online" functionality for UP items #505
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Nice work! Logic looks good. I'll wrap up my review tomorrow. |
@@ -220,4 +221,39 @@ export default class EditionCardUtils { | |||
: undefined; | |||
return universityPress !== undefined; | |||
} | |||
|
|||
static createGetContent = (nyplIdentityCookie: any, router: NextRouter) => { | |||
const fetchWithAuth = async (fulfillUrl: string, proxyUrl?: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this code could be reused to call other endpoints that need authentication besides the fulfill endpoint?
I think it's fine to keep it like this for now but we could consider abstracting this out to use with other endpoints later on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving based on the logic - but will leave the rest to the frontend squad
…front-end into SFR-1969/web-reader-custom-fetcher
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a couple small comments, but going ahead and approving.
Jira Ticket
This PR does the following:
Testing requirements & instructions: